<?php

class Application
{
    private $_applicationName = null;
    private $_configFile = null;
    
	public function __construct()
	{}
	
	public function setName($name)
    {
        $this->_applicationName = $name;
    }
    
    public function setConfig($configFile)
    {
        $this->_configFile = $configFile;
    }
    
    public function getApplication()
    {
        require_once($this->_applicationName . '.php');
        return new $this->_applicationName($this->_configFile);
    }
}

?>